package com.zzptc.easyshop.service;

import com.zzptc.easyshop.dao.ProductDao;
import com.zzptc.easyshop.factory.DaoFactoryImp;
import com.zzptc.easyshop.vo.VO;

import java.sql.SQLException;
import java.util.List;

public class ProductServiceImp  implements IService{

    @Override
    public boolean insert(VO vo) throws SQLException {
        return false;
    }

    /**
     * 获取商品的所有类型
     * @return
     * @throws SQLException
     */

    @Override
    public List getall() throws SQLException {
        //创建DAO
        try {
            ProductDao dao=(ProductDao)DaoFactoryImp.getlnstance().createDAO("productdao");
            List list = getall();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public boolean deleteByID(VO vo) throws SQLException {
        return false;
    }

    @Override
    public VO getByTD(VO vo) throws SQLException {
        return null;
    }
}
